package com.im.holder;

import android.content.Context;
import android.view.View;
import android.widget.ImageView;

import com.core.sdk.ui.holder.BaseViewHolder;
import com.im.R;
import com.im.model.MoreChat;

public class MoreChatHolder extends BaseViewHolder<MoreChat, Void> {

	public MoreChatHolder(View rootView,Context act) {
		super(rootView,act);
	}
	ImageView iv ;

	@Override
	protected void onInitViews(View view) {
		iv = find(R.id.item_more_chat_iv);
		
	}

	@Override
	protected void onBindItem() {
		MoreChat mc = getItem().getData();
		iv.setImageResource(mc.getResId());
	}

	@Override
	protected void onResetViews() {
		
	}

	@Override
	protected void onRecycleItem() {
		
	}

	@Override
	protected void onRefreshView() {
		
	}

	@Override
	protected void onDestroy() {
		iv.setImageBitmap(null);
		
	}
	

}
